package com.ffcs.web.model.entity;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_message")
public class Message implements java.io.Serializable {

	// Fields

	private Integer id;
	private Short sendType;
	private String sendContent;
	private Date createDate;
	private String sendMan;
	@Transient
	private String flag;
	@Transient
	private String tucao;

	// Constructors

	/** default constructor */
	public Message() {
	}

	/** minimal constructor */
	public Message(Short sendType, String sendContent, Date createDate) {
		this.sendType = sendType;
		this.sendContent = sendContent;
		this.createDate = createDate;
	}

	/** full constructor */
	public Message(Short sendType, String sendContent, Date createDate,
			String sendMan) {
		this.sendType = sendType;
		this.sendContent = sendContent;
		this.createDate = createDate;
		this.sendMan = sendMan;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "sendType", nullable = false)
	public Short getSendType() {
		return this.sendType;
	}

	public void setSendType(Short sendType) {
		this.sendType = sendType;
	}

	@Column(name = "sendContent", nullable = false, length = 2000)
	public String getSendContent() {
		return this.sendContent;
	}

	public void setSendContent(String sendContent) {
		this.sendContent = sendContent;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "createDate", nullable = false, length = 19)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "sendMan", length = 20)
	public String getSendMan() {
		return this.sendMan;
	}

	public void setSendMan(String sendMan) {
		this.sendMan = sendMan;
	}

	@Transient
	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	@Transient
	public String getTucao() {
		return tucao;
	}

	public void setTucao(String tucao) {
		this.tucao = tucao;
	}

}